package demo1;

/**
 * @author lishunlin110
 * @version 1.0
 * @description: ROM学生类封装数据
 * @date 2021/8/21 17:30
 */
public class Students {

    private String id;
    private String name;
    private String dept_name;
    private int tot_cred;

    public Students(String id, String name, String dept_name, int tot_cred) {
        this.id = id;
        this.name = name;
        this.dept_name = dept_name;
        this.tot_cred = tot_cred;
    }

    public Students() {

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public int getTot_cred() {
        return tot_cred;
    }

    public void setTot_cred(int tot_cred) {
        this.tot_cred = tot_cred;
    }

    @Override
    public String toString() {
        return "demo1.Students{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", dept_name='" + dept_name + '\'' +
                ", tot_cred=" + tot_cred +
                '}';
    }
}
